package com.hll.demo.service;

import com.hll.demo.mapper.UserMapper;
import com.hll.demo.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author: Mr.Hu
 * @create: 2021-03-14 08:40
 */
/*bean实例*/
@Service
public class UserServiceImpl implements UserService {
  // 将DAO注入Service层
  @Autowired private UserMapper userMapper;

  @Override
  public User loginIn(String name, String password) {
    return userMapper.getUserInfo(name, password);
  }
}
